package org.eminem.cloud.registereureakamoviefeignhystrix.controller;

import org.eminem.cloud.registereureakamoviefeignhystrix.domain.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(name = "register-eureaka-user",fallback = FeignClientFallBack.class)
public interface UserFeignClient {

    @RequestMapping(value="/{id}",method = RequestMethod.GET)
    public User findById(@PathVariable("id") Long id);
}
